package com.jeejam.shailmShop;

import com.alibaba.fastjson.JSONObject;
import com.jeejam.product.sdk.api.IProductService;
import com.jeejam.product.sdk.dto.ProductDto;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by zwj on 16/2/23.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:application-test-client-context.xml")
public class productClientShop {

    @Resource
    private IProductService productService;

    @Before
    public void setUp() throws Exception {
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void testSetUser4Login() {
        List<ProductDto> result = productService.findForNew(1,4);
        System.out.println("result = " + JSONObject.toJSONString(result));

    }


}
